﻿<cfscript>
/** 
* ORM CourseWorkLoad
* 
* @hint "Hibernate persistenter t_course_workload. 课程工作量计算方法" 
* 
*/ 

component 
	displayname="public.service.orm.senate.CourseWorkLoad" 
	output=false 
	persistent=true 
	selectBeforeUpdate=true dynamicInsert=true dynamicUpdate=true 
	cacheuse="Transactional" 
	entityname="CourseWorkLoad" 
	table="t_course_workload"
	{
	
	property type="string" name="CourseID" column="cid" fieldtype="id" generator="foreign" params="{property='Course'}" hint="课程号";
	
	property name="Course" fieldtype="one-to-one" cfc="Course" constrained="true" hint="课程";
	
	property type="numeric" name="LanguageWeight" column="lang_weight" hint="双语加权系数";
	property type="numeric" name="PracticeWeight" column="prac_weight" hint="实践加权系数";
	
	property type="string" name="TeacherWorkDivide" column="work_divide" hint="工作量分配比例";

	property name="WorkLoadType" fieldtype="many-to-one" fkcolumn="hrt" cfc="HRWorkload"  hint="编制类型";
	
	property name="TheoryFunction" fieldtype="many-to-one" fkcolumn="theory_fun" cfc="WorkLoad"  hint="理论工作量计算公式";
	property name="PracticeFunction" fieldtype="many-to-one" fkcolumn="practice_fun" cfc="WorkLoad"  hint="实践工作量计算公式";
	
}

</cfscript>
